
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>StudentData</title>
</head>
<body>

<h1>User Data</h1>
<!-- 表单用于输入数据-->
<form action="/submit" method="post">
    <label for="name">Name:</label><br>
    <input type="text" id="name" name="name"><br><br>
    <input type="submit" value="Submit">

    <!-- 展示从数据库中获取的数据 -->
    <h2>StudentUser:</h2>
    <ul>
        {{ range .users }}
        <li>{{.Name}}</li>
        {{end}}
    </ul>
</form>
</body>
</html>